package com.lh.ssm.service;

import com.lh.ssm.domain.Cart;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;


public interface CartService {

    int createCart(int pid, int uid);

    List<Cart> findAllByUid(int uid);

    int updateCartById(int cid, int cnum, BigDecimal total);

    int deleteCartById(int cid);

    int clearCart(int uid);

    List<Cart> showCartByUid(int uid);
}
